/*
 * Created by SharpDevelop.
 * Author: Joey
 * Date: 01/10/2007
 * Time: 01:09
 * 
 * Source is copyright Joey Sabey 2007
 */

using System;
using System.Drawing;
using System.Windows.Forms;

namespace MonoTheism
{
	/// <summary>
	/// Description of QueryDialogue.
	/// </summary>
	public partial class QueryDialogue : Form
	{
		private bool bChoice = false;
		public bool Yes
		{
			get{return bChoice;}
		}
		public bool No
		{
			get{return !bChoice;}
		}
		
		public QueryDialogue(string sTitle, string sMessage)
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			Text = sTitle;
			lblMessage.Text = sMessage;
		}
		
		void BtYesClick(object sender, EventArgs e)
		{
			bChoice = true;
			Close();
		}
		
		void BtNoClick(object sender, EventArgs e)
		{
			Close();
		}
	}
}
